<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Rag Hu
 * Created Time: 2019/7/25 17:25
 * Modified Time: 2019/7/25 17:25
 * Version: 2.0
 */

namespace App\Modules\Partner\Repositories;


use App\Models\UserInvite;
use Flower\Core\Repository\Eloquent\BaseRepository;

class UserInviteRepository extends BaseRepository
{
    public function model()
    {
        return UserInvite::class;
    }

    public function createUserInvite($user_id,$new_user_id)
    {
        $new_user_invite_data = [
            'user_id' => $user_id,
            'new_user_id' => $new_user_id,
            'amount' => 180,
            'status' => 0
        ];
        return $this->create($new_user_invite_data);
    }
}